html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
  padding: 0;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

ul {
  list-style: none;
}

button,
input,
select {
  margin: 0;
}

html {
  box-sizing: border-box;

  /*滚动条样式*/
  ::-webkit-scrollbar {
    position: absolute;
    width: 6px;
    height: 6px;
  }

  ::-webkit-scrollbar-thumb {
    background: #bfbfbf;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);

    &:hover {
      background: rgba(0, 0, 0, 0.2);
      -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    }
  }

  ::-webkit-scrollbar-track {
    background: transparent;
  }

  ::-webkit-scrollbar-track-piece {
    background: transparent;
  }

  /* 暗黑模式 */
  &.dark {
    ::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.2);
      border-radius: 3px;
      -webkit-box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.2);

      &:hover {
        background: var(--primary-color);
        -webkit-box-shadow: inset 0 0 5px var(--primary-color);
      }
    }
  }

  --n-scrollbar-bezier: cubic-bezier(0.4, 0, 0.2, 1);
  --n-scrollbar-color: rgba(0, 0, 0, 0.25);
  --n-scrollbar-color-hover: rgba(0, 0, 0, 0.4);
  --n-scrollbar-border-radius: 5px;
  --n-scrollbar-width: 5px;
  --n-scrollbar-height: 5px;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

iframe {
  border: 0;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
}

td,
th {
  padding: 0;
}

a {
  text-decoration: none;
}
